import BundleManager from "./BundleManager";
import { IResLoader } from "./IResLoader";
import { IBundleManager } from "./IBundleManager";
import { IEngine } from "../engine/IEngine";
import { ResLoader } from "./ResLoader";


export class res {

    private static _bundleMgr: IBundleManager;
    private static _loader: ResLoader;
    static init(factory: IEngine) {
        this._bundleMgr = new BundleManager(factory)
        this._loader = new ResLoader(this._bundleMgr)

    }


    static get loader(): IResLoader {
        return this._loader;
    }

    static get bundle() {
        return this._bundleMgr;
    }
}